Update README.md: Add --web=off for graphics#101
Open
Sangbaek wants to merge 1 commit intoroot-project:masterfrom
Open
Update README.md: Add --web=off for graphics#101Sangbaek wants to merge 1 commit intoroot-project:masterfrom
Sangbaek wants to merge 1 commit intoroot-project:masterfrom
Conversation
## Trouble
My machine prints out the following message when I executed the suggested command, `docker run -it -v ${PWD}:/home/${USERNAME} -e DISPLAY=host.docker.internal:0 rootproject/root:latest root`, under `Enabling Graphics` at [README.md](https://github.com/root-project/root-docker/blob/master/README.md):
```
Find more info on https://root.cern/for_developers/root7/#rbrowser
Info in <THttpEngine::Create>: Starting HTTP server on port 127.0.0.1:9642
ROOT web-based widget started in the session where DISPLAY set to host.docker.internal:0
Means web browser will be displayed on remote X11 server which is usually very inefficient
One can start ROOT session in server mode like "root -b --web=server:8877" and forward http port to display node
Or one can use rootssh script to configure port forwarding and display web widgets automatically
Find more info on https://root.cern/for_developers/root7/#rbrowser
This message can be disabled by setting "WebGui.CheckRemoteDisplay: no" in .rootrc file
sh: 1: xdg-open: not found
```
## Solution
This can be solved by updating the `root` with `bash -c 'root -l --web=off'.
pcanal
reviewed
Jun 30, 2025
|
|
||
| ``` | ||
| docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --rm -it --user $(id -u) rootproject/root root | ||
| docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --rm -it --user $(id -u) rootproject/root bash -c 'root -l --web=off' |
Member
There was a problem hiding this comment.
This seems counter to the intent of the example (which is to use the new graphics).
Did you investigate why you get the error message:
sh: 1: xdg-open: not found`
?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trouble
My machine prints out the following message when I executed the suggested command,
docker run -it -v ${PWD}:/home/${USERNAME} -e DISPLAY=host.docker.internal:0 rootproject/root:latest root, underEnabling Graphicsat README.md:Solution
This can be avoided by replacing
rootwithbash -c 'root -l --web=off'.